package TransactionImplementation

//添加佣金员工
//引入
import (
	"SalaryPayment/AbstractTransaction"
	"SalaryPayment/Model"
	"SalaryPayment/ModelImplementation"
)

//结构体
type AddCommissionEmployee struct {
	AbstractTransaction.AddEmployeeTransaction
	itsSalary         float64
	itsCommissionRate float64
}

//付款分类
func (ace *AddCommissionEmployee) GetClassification() Model.PaymentClassification {
	//返回佣金分类
	return ModelImplementation.NewCommissionClassification(ace.itsSalary, ace.itsCommissionRate)
}

//付款时间表
func (ace *AddCommissionEmployee) GetSchedule() Model.PaymentSchedule {
	//返回双周时间表
	return ModelImplementation.BiweeklySchedule{}
}
